package cn.tedu.micro.service.order.sentinel;

import io.seata.core.context.RootContext;
import io.seata.core.exception.TransactionException;
import io.seata.tm.api.GlobalTransactionContext;

//自定义限流类
public class OrderFallbackError {
    //自定义方法
    //需要额外添加static修饰符，否则该方法无发被sentinel发现
    public static String fallbackError() throws TransactionException {
        return "访问超时，请稍后再试";
    }
}
